<template>
  <div>
    <p>{{'user love page'}}</p>
    <router-link to="/user">{{"返回到user"}}</router-link>
<<<<<<< HEAD
=======
    <router-link :to="{ path: 'test', query: { plan: 'test', love: 'who'}, }">{{"返回到test"}}</router-link>

>>>>>>> 1dcece698ae0dda1b9500f3333e64fecae8b1df9
  </div>
</template>
<script>
  export default {
    watch: {
      '$route' (to, from){
        alert(1)
        console.log(to)
        console.log(from)
      }
    }
  }
</script>